package com.liz.lizrpccore.beans.proxys.netty.msgs;

import com.liz.lizrpccore.entity.LizRpcArg;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.List;

/**
 * @author liangGongWei
 * @description
 * @create 2021-09-22 14:07
 **/

@Getter
@Setter
public class InvokerMessage implements Serializable {

    private String className;

    private String methodName;

    private List<LizRpcArg> lizRpcArgs;

    private Class<?>[] parameterTypes;

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
